home *** CD-ROM | disk | FTP | other *** search
- VERSION 5.00
- Object = "{EFCBD60E-81ED-11D1-8562-444553540000}#9.0#0"; "MouseHookOcx.ocx"
- Begin VB.Form FrmDemoVb5
- Caption = "Form1"
- ClientHeight = 3570
- ClientLeft = 60
- ClientTop = 345
- ClientWidth = 4680
- LinkTopic = "Form1"
- ScaleHeight = 3570
- ScaleWidth = 4680
- StartUpPosition = 2 'CenterScreen
- Begin MouseHookOcx.MouseRx MouseRx1
- Left = 240
- Top = 1080
- _ExtentX = 820
- _ExtentY = 820
- End
- Begin VB.CommandButton Command2
- Caption = "Enable Right Click"
- Height = 675
- Left = 1500
- TabIndex = 1
- ToolTipText = "Click to UnLock"
- Top = 1620
- Width = 1875
- End
- Begin VB.CommandButton Command1
- Caption = "Disable Right Click"
- Height = 675
- Left = 1500
- TabIndex = 0
- ToolTipText = "Click to lock"
- Top = 540
- Width = 1875
- End
- Begin VB.Label Label1
- Caption = "Right click where ever you want"
- BeginProperty Font
- Name = "MS Sans Serif"
- Size = 12
- Charset = 0
- Weight = 700
- Underline = 0 'False
- Italic = 0 'False
- Strikethrough = 0 'False
- EndProperty
- Height = 495
- Left = 420
- TabIndex = 2
- Top = 2580
- Width = 3915
- End
- Attribute VB_Name = "FrmDemoVb5"
- Attribute VB_GlobalNameSpace = False
- Attribute VB_Creatable = False
- Attribute VB_PredeclaredId = True
- Attribute VB_Exposed = False
- Option Explicit
- Private Sub Command1_Click()
- 'Enables right click hook !!!
- MouseRx1.Enabled = True
- End Sub
- Private Sub Command2_Click()
- 'Enables right click hook !!!
- ' It's easy !!!
- MouseRx1.Enabled = False
- End Sub
- Private Sub MouseRx1_MouseMessage(MSG As String)
- MsgBox "State : " & MSG
- End Sub
-